﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Eeml.Core
{
    public class Unit
    {
        #region Fields

        private string _symbol;
        private string _friendlyName;

        #endregion

        #region Contructors
        #endregion

        #region Properties

        public string Symbol
        {
            get
            {
                if (_symbol == null)
                {
                    _symbol = "";
                }

                return _symbol;
            }
            set
            {
                if (string.IsNullOrEmpty(value))
                {
                    return;
                }
                _symbol = value;
            }
        }

        public string FriendlyName
        {
            get
            {
                if (_friendlyName == null)
                {
                    _friendlyName = "";
                }
                return _friendlyName;
            }

            set
            {
                if (string.IsNullOrEmpty(value))
                {
                    return;
                }
                _friendlyName = value;
            }
        }

        #endregion

        #region Methods
        #endregion
    }
}
